﻿using System;

namespace X23.Model.Bill
{
    /// <summary>
    /// 账单
    /// </summary>
    public class Bill : BaseAuditedEntity
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 账单类型
        /// </summary>
        public BillType BillType { get; set; }
        /// <summary>
        /// 钱
        /// </summary>
        public decimal Money { get; set; }
        /// <summary>
        /// 时间
        /// </summary>
        public DateTime DateTime { get; set; }
        /// <summary>	
        /// 账单备注		
        /// </summary>	
        public string BillRemark { get; set; }

        #region 用于时间分组查询
        /// <summary>
        /// 年
        /// </summary>
        public int Year { get; set; }
        /// <summary>
        /// 月
        /// </summary>
        public int Month { get; set; }
        /// <summary>
        /// 日
        /// </summary>
        public int Day { get; set; }
        #endregion
    }
    public enum BillType
    {
        Eat = 1, Life, Study, World
    }
}
